<template>
	<view class="compose_rule">
		<u-navbar :is-back="false" title="">
			<view class="slot_content">
				<view class="nav_img" @click="backTo">
					<image src="@/static/17.svg"></image>
				</view>
				<view class="nav_title">合成规则</view>
			</view>
		</u-navbar>
		<view class="content">
			<view class="item" @click="router()">
				<text>合成活动规则1</text>
				<image src="@/static/20.svg"></image>
			</view>
			<view class="item" @click="router()">
				<text>合成活动规则2</text>
				<image src="@/static/20.svg"></image>
			</view>
			<view class="item" @click="router()">
				<text>合成活动规则3</text>
				<image src="@/static/20.svg"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false
			}
		},
		onLoad() {},
		async onShow() {},
		methods: {
			backTo() {
				uni.navigateBack()
			},
			router(id) {
				let url=`/pages/compose/ruleDeta?id=${id}`;
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.compose_rule {

		.content {
			padding: 0 30rpx;
			box-sizing: border-box;

			.item {
				width: 100%;
				height: 160rpx;
				border-bottom: 1px solid #F0F0F0;
				display: flex;
				justify-content: space-between;
				align-items: center;

				text {
					color: #2A2A2A;
					font-size: 28rpx;
				}

				image {
					width: 48rpx;
					height: 48rpx;
				}
			}
		}
	}
</style>
